package com.up4years.dataapi.service.system;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.up4years.dataapi.dao.base.PageDao;
import com.up4years.dataapi.dao.system.BalanceRecordMapper;
import com.up4years.dataapi.entity.base.Page;

@Service
public class BalanceRecordService {
	@Autowired
	private BalanceRecordMapper balanceRecordMapper;
	@Autowired
	private PageDao pageDao;
	
	public Page<Map<String,Object>> pageList(Page<Map<String,Object>> page,Object parameters){
		String statementName = "com.up4years.dataapi.dao.system.BalanceRecordMapper.list";
		return this.pageDao.pageQuery(page, statementName, parameters);
 	} 
	List<Map<String,Object>> getByUserId(long user_id){
		return this.balanceRecordMapper.getByUserId(user_id);
	}
	List<Map<String,Object>> getByUserName(String true_name){
		return this.balanceRecordMapper.getByUserName(true_name);
	}
	List<Map<String,Object>> getByUserMobile(String mobile){
		return this.balanceRecordMapper.getByUserMobile(mobile);
	}
	List<Map<String,Object>> list(Map<String,Object> parameters){
		return this.balanceRecordMapper.list(parameters);
	}
}
